import request from '@/utils/request'

// 品牌推进
export function homeBrand (limit = 10) {
  return request({
    url: '/home/brand',
    method: 'get',
    params: {
      limit
    }
  })
}

// banner 轮播图
export function homeBanner () {
  return request({
    url: '/home/banner',
    method: 'get'
  })
}

// 新鲜好物api
export function homeNew (limit = 4) {
  return request({
    url: '/home/new',
    method: 'get',
    params: {
      limit
    }
  })
}

// 人气推荐api
export function getHomeHot () {
  return request({
    url: '/home/hot',
    method: 'get'
  })
}

// 首页产品区块
export function homeGoods () {
  return request({
    url: '/home/goods',
    method: 'get'
  })
}

// 最新区块
export function homeSpecial () {
  return request({
    url: '/home/special',
    method: 'get'
  })
}
